<!DOCTYPE html>
<html>
<head>
<div th:include="base-libs :: base-libs" />
<div th:include="gzt/gzt_model :: qyxxgl-modal" />
	
<title>工作台</title>

<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="this is my page">
<meta name="content-type" content="text/html; charset=UTF-8">

<style>
	#dateUl,#labelUl{
		list-style-type:none !important;
	}
	#dateUl li{
		float:left;
		width:60px;
		height:30px;
		line-height:30px;
		font-size:14px;
		border:1px solid #ddd;
		text-align:center;
		list-style:none;
		cursor:pointer
	}
	#labelUl li{
		float:left;
		width:130px;
		height:30px;
		line-height:30px;
		font-size:14px;
		border-right:1px solid #ddd;
		text-align:center;
		list-style:none;
		cursor:pointer;
		position:relative;
	}		
	.inputDate{
		width: 140px;
		padding-left: 5px;
		line-height: 28px;
		background-color: #fff;
		height: 28px;
		border: 1px solid #B6B6B6;
		border-radius: 5px;
	}
	#totalTable .td-text{
		text-align:center;
		width:45px;
	}
	.td-context{
		width:20%;
	}
	.title{
		height:30px;
		line-height:30px;
		background:#F7F9FB;
		font-size:14px;
		padding-left:5px;
		margin-left:0
	}
	#precent td{
		height:20px;
		width:50px;
		cursor:pointer;
		text-align:center
	}
	#YXQYL:hover{
		cursor:text
	}
	.bg{
		background:#3399FF
	}
	.spanBtn{
		font-weight: bold;
    	color: blue;
    	cursor:pointer;
	}
	.tabs-wrap>.tabs>li>a{
		border-left:1px solid #438EB9!important;
		border-right:1px solid #438EB9!important;
		border-top:1px solid #438EB9!important;
	}
	/*浮雕字体css*/
	.fdztCss{
		text-shadow: 1px 1px 0 rgba(255, 255, 255, .7);
		color:#ccc;
	}
</style>

<script th:inline="javascript">
	var tdxxArr = [[${tdxxArr}]];
</script>
<script>
	var startTime,endTime;
	$(function(){
    	initView();
    	initData();
    })
    
	function initData(){
	    //初始化团队列表，并默认选择列表中的第一个自己为团队长的选项
		var tdxxList = $("#tdxxList");
		var flag = true,optionNum = 0;
		$.each(tdxxArr, function(i,item){
			var option = $("<option>").html(item.TDMC).val(i).data({"TDID":item.TDID,"TDJS":item.TDJS});
			if(flag && item.TDJS==1){
				optionNum = i;
				flag = false;
			}
			tdxxList.append(option);
		})
		tdxxList.val(optionNum);
		$("#tdxxList").trigger("change");
	}    
    
	/* ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓  视图展示-开始   ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓*/
	
    function initView(){
		
		//查询开始时间设置
		var startTimeObj = {
			 elem: '#startTime',
		  	 choose: function(datas){
		  		endTimeObj.min = datas;
		  		var endTime = $("#endTime").val();
		  		if(!StringUtils.isEmpty(endTime)){
		  			queryByTimeLimit(5);
		  			$("#dateUl>li:lt(4)").removeClass("bg");
		  		}
		  	 }
		};
		laydate(startTimeObj);
		
		//查询结束时间设置
		var endTimeObj = {
				elem: '#endTime',
			  	choose: function(datas){
			  		startTimeObj.max = datas;
			  		var startTime = $("#startTime").val();
			  		if(!StringUtils.isEmpty(startTime)){
			  			queryByTimeLimit(5);
			  			$("#dateUl>li:lt(4)").removeClass("bg");
			  		}
			    }
		};	
		laydate(endTimeObj);
		
		//日期li点击切换样式
		$("#dateUl>li:lt(4)").click(function(){
			$(this).addClass("bg").siblings().removeClass("bg");
			$("#startTime,#endTime").val("");
		})
		
		/** 改变团队  */
		$("#tdxxList").change(function(){
			//删除所有tab
			var allTabs = $('#tableTabs').tabs('tabs')
			for(var i=allTabs.length-1;i>=0;i--){
				$('#tableTabs').tabs('close',i);
			}
			//根据角色重新添加tab
			var TDJS = $("#tdxxList>option:selected").data("TDJS");
			addEasyuiTab('待完成服务(<span style="color:red" id="dwcfwNum">0</span>)', 'dwcfwTb');
			if(TDJS==1){
				addEasyuiTab('预签约(<span style="color:red" id="wqyNum">0</span>)', 'yqyTb');
				addEasyuiTab('到期提醒(<span style="color:red" id="dqtxNum">0</span>)', 'dqtxTb');
				addEasyuiTab('转介审核(<span style="color:red" id="zjshNum">0</span>)', 'zjshTb');
			}
			$('#tableTabs').tabs('select',0); //激活第一个tab
			//重新统计概览信息
			var num = $(".bg").index();
			queryByTimeLimit(num + 1);
		})
		
		$('#tableTabs').tabs({
			border: true,
		    fit: true,
		    tabWidth: "150",
			onSelect: function(title,index){
				var nowSelectTab = $(this).tabs('getTab',index); //获取到当前激活的tab
				var tableId = nowSelectTab.find("table").attr("id");
				if(!StringUtils.isEmpty(tableId)){
					initViewMethod[tableId]();
				}
			}
			
		})
	}
	
    /* ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑  视图展示-结束   ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑*/
	
    /** 添加一个tab */
    function addEasyuiTab(title,tableId,select){
    	var content = '<table id="'+ tableId +'"></table>';
		$('#tableTabs').tabs('add',{
			title:title,
			content:content,
			selected:false //不选中该tab
		});
    }
    
    
    
    
	/** 
	 *  设置查询的时间段
	 *	type:1:当天，2：本周，3：本月，4：本年，5：用户手动选择的时间段
	 */
	function queryByTimeLimit(type){
		
		var nowDate = new Date(),
			nowYear = nowDate.getFullYear(),
			nowMonth= nowDate.getMonth(),
			nowDay  = nowDate.getDate(),
			nowDayOfWeek = nowDate.getDay(); //今天本周的第几天
					
		if(type==1){
			startTime = endTime = formatDate(nowDate);
			//startTime = formatDate(nowDate);
            //endTime = formatDate(new Date(nowDate.setDate(nowDate.getDate()+1)));
		}else if(type==2){
			var weekStartDate = new Date(nowYear, nowMonth, nowDay - nowDayOfWeek);
			startTime = formatDate(weekStartDate);
			var weekEndDate = new Date(nowYear, nowMonth, nowDay + (6 - nowDayOfWeek));
			endTime = formatDate(weekEndDate);
		}else if(type==3){
			var monthStartDate = new Date(nowYear, nowMonth, 1);
			startTime = formatDate(monthStartDate);
			var months = new Date(nowYear,nowMonth+1,0);  //月份：1-12
			var monthDays = months.getDate(); //获取本月的天数
			var monthEndDate = new Date(nowYear, nowMonth, monthDays);
			endTime = formatDate(monthEndDate);
		}else if(type==4){
			var yearStarDate = new Date(nowYear,0,1); //月份：0-11
			startTime = formatDate(yearStarDate);
			var yearEndDate = new Date(nowYear,11,31);
			endTime = formatDate(yearEndDate);
		}else{
			startTime = $("#startTime").val();
			endTime = $("#endTime").val();
		}
		
		//数量统计查询
		queryCount();
	}
	
	/** 统计查询  */
	function queryCount(){
		var TDID = $("#tdxxList>option:selected").data("TDID");
		var params = {
				JZRQ_start: startTime,
				JZRQ_end: endTime,
				QYSJ_start: startTime,
				QYSJ_end: endTime,
				YLTDID: TDID,
				SSTDID: TDID,
				//到期提醒
				TQTS: 30,
				//转介审核
				SHZT:0,
				//待完成服务
				USERID: parent.userInfo.USERID,
				FWZT: 0
		}
		$.QuickRemote.AjaxJson(contextRoot + "gzt/queryCount", function(result){
			var yxqyl = (result.YXQYRC/(result.YQYRC || 1)*100).toFixed(2); //除数不能为0，当除数为0时直接设为1
			result.YXQYL = yxqyl + "%"; //有效签约率
			for(var key in result){
				$("#"+key).html(result[key]);
			}
		}, params);
		
		//近期工作任务
		
	}
	
	//格式化日期：yyyy-MM-dd
	function formatDate(date) {
	    var myyear = date.getFullYear();
	    var mymonth = date.getMonth() + 1;
	    var myweekday = date.getDate();
	    if (mymonth < 10) {
	        mymonth = "0" + mymonth;
	    }
	    if (myweekday < 10) {
	        myweekday = "0" + myweekday;
	    }
	    return (myyear + "-" + mymonth + "-" + myweekday);
	}
	
	/** 签约信息概览-数据下钻查询  */
	function queryModelData(modelId){
		$("#yqyTable,#yyyTable,#yzzTable,#ylyTable,#yxqyTable").remove();
		
		var titleObj = {'yqyModel':'已签约','yyyModel':'已预约','yzzModel':'已转诊','ylyModel':'已履约','yxqyModel':'有效签约'};
		parent.layer.open({
			  type: 1,
			  area: ["80%", "500px"],
			  content: $("#"+modelId).html(),
			  title: titleObj[modelId],
			  success : function(layero, index){
				  if(modelId=='yyyModel'){ //已预约
					  openYyyModel(layero);
				  }else if(modelId=='yzzModel'){ //已转诊
					  openYzzModel(layero);
				  }else if(modelId=='ylyModel'){ //已履约
					  openYlyModel(layero);
				  }else{
					  openYxqyModel(layero); //有效签约
				  }
			  },
			  cancel: function(){
				  //"关闭"layer
				  $(".layui-layer").css("display","none");
			  }
			 
		});
		
	}
	
	/** 查询已签约数据 */
	function queryYqyData(){
		var queryCondition = {
			YLTDID: $("#tdxxList>option:selected").data("TDID"),
			QYSJ_start: startTime,
			QYSJ_end : endTime,
			USERID : parent.userInfo.USERID,
		}
		//StoreCache.setCache("queryCondition", queryCondition);
		parent.gztQueryCondition = queryCondition;
		parent.layer.open({
			  type: 2,
			  area: ["80%", "80%"],
			  content: contextRoot + 'gzt/yqyModel.html',
			  scrollbar: false,
			  resize: false,
			  title:'已签约'
		});
	}
	
	/** 查询有效签约数据 */
	function queryYxqyData(){
		var queryCondition = {
			YLTDID: $("#tdxxList>option:selected").data("TDID"),
			QYSJ_start: startTime,
			QYSJ_end : endTime,
			USERID : parent.userInfo.USERID,
		}
		//StoreCache.setCache("queryCondition", queryCondition);
		parent.gztQueryCondition = queryCondition;
		parent.layer.open({
			  type: 2,
			  area: ["80%", "80%"],
			  content: contextRoot + 'gzt/yxqyModel.html',
			  scrollbar: false,
			  resize: false,
			  title:'有效签约'
		});
	}
	
	/** 完成服务  */
    function doedTask(taskData){
    	StoreCache.setCache("taskData", taskData);
    	parent.layer.open({
			  type: 2,
			  area: ["900px", "350px"],
			  content: contextRoot+"wdqyhz/wcrw.html",
			  scrollbar: false,
			  title:'完成服务',
			  end: function(){
				  var refresh = StoreCache.removeCache("refresh");
				  if(refresh){
					  $("#dwcfwTb").datagrid("reload");
				  }
			  }
		});
    }
	
    /** 审核转介申请  */
	function checkZjxx(zjData){
		var info = "您选中了<span style='color:red'>"+ zjData.XM +"</span>，"
		+"由<span style='color:red'>"+zjData.YQYTDMC+"</span>转入，转介原因为"
        +"<span style='color:red'>"+ zjData.ZJYYMS + "</span>，是否确认接受转介？";
        
        var zjryArr = new Array(zjData);
		var lay = parent.layer.confirm(info, {
			btn: ['接受','拒绝'],
			btn1: function(index,layero){
			    parent.layer.close(lay);
                zjData.QYTDMC = zjData.XQYTDMC;  //签约团队名称改为现签约团队名称
                zjData.FWBIDS = zjData.FWBID.split(",").join("|");
                StoreCache.setCache("xy_jfMsg",zjData);//协议_甲方信息

                StoreCache.setCache("czxxDivId","zjxxDiv");//czxxDivId(注：操作信息展示的Div的Id) 为： jyxxDiv
                parent.layer.open({
                    type: 2,
                    area: ["800px", "90%"],
                    content: contextRoot + 'jtqy/changeXy.html',
                    scrollbar: false,
                    resize: false,
                    title:'新协议确定',
                    end: function(){
                        var xyContent = StoreCache.removeCache("xyContent");
                        if(!StringUtils.isEmpty(xyContent)){
                            var XYH = StoreCache.removeCache("XYH");
                            var params = {"SHZT":"1", zjryArr:JSON.stringify([zjData]), CONTENT: xyContent,XYH:XYH};
                            $.QuickRemote.AjaxJson(contextRoot + "jtqy/checkZjsq", checkZjxxBack, params);
                        }
                    }
                });
			},
			btn2: function(){
				 var params = {"SHZT":"2",zjryArr:JSON.stringify(zjryArr)};
				 $.QuickRemote.AjaxJson(contextRoot + "jtqy/checkZjsq", checkZjxxBack, params);
			},
		});
	}
	
	/** 转介审核回调  */
	function checkZjxxBack(result){
		if(result.state)
		{
			$.QuickAlert.alertNormal(result.info.success, {callback: function(){
				$('#zjshTb').datagrid('reload');
			}});
		}
		else
		{
			var info = result["info"];
			$.QuickAlert.alertFail({content: info["faultInfo"]});
		}
		
	}
	
	/** 审核预签约-跳转到预签约详细页面  */
	function checkYqy(row){
		row.TDMC = row.QYTDMC
		row.FWBMC= row.QYFWB;
		
		StoreCache.setCache("BACKINFO", contextRoot + "/gzt/index.html");
		StoreCache.setCache("JTQYXQINFO", row);
		location = contextRoot + "jtqy/detail.html?to=yqyDetail&JMXXID=" + row.JMXXID;
	} 

	/** 续约服务 */
	function xyfw(row){
		/*$.QuickAlert.alertConfirm({
		    content : "当前版本只支持在<span style='color:red;font-size:15px;padding:0 5px;'>正式签约</span>菜单中进行续约,是否跳转到正式签约？",
		    callback : function() {
		        parent.selectMenuByHand('正式签约');
		    }
		})*/
        var back = {
            SUCCESS: contextRoot + "gzt/index.html",
            FAIL: contextRoot + "gzt/index.html"
        };
        StoreCache.setCache("XYBACKINFO", back);
        StoreCache.setCache("JTQYXQINFO", row);
        location = contextRoot + "jtqy/xyManager.html?JMXXID=" + row.JMXXID + "&YLJGID=" + row.YLJGID + "&TDID=" + row.YLTDID;
	}
    
    //初始化页面的相关方法
    var initViewMethod = {
    		yqyTb: function(){
	    		var query = $('#yqyTb').data("query");
				if(!query){
					$('#yqyTb').data("query",true);
				}else{
					return;
				}
    			$('#yqyTb').datagrid({
						idField : "USERID",
						uniqueId: "USERID",
						striped : true,
						clickToSelect: true,
						fit:true,
						fitColumns: true,
						scrollbarSize:0, //预留的滚动条的宽度
						singleSelect:true,
						pagination : true,
						pageNumber : 1,
						pageSize : 10,
						pageList: [10, 25, 50, 100, 200],
						scrollBarSize:0,
						border: false,
						columns:[[
					   				{field:'XM', title:'姓名', width: 100, align: 'center'}
									,{field:'ZJHM', title:'证件号码', width: 200, align: 'center',formatter:function(value){
										var reg = /.{8}$/;
										return value.replace(reg,'********');
									}}
									,{field:'SJHM', title:'手机号码', width: 100, align: 'center'}
									,{field:'JTZZ', title:'家庭住址', width: 200, align: 'center'}
									,{field:'QYSJ', title:'预签约时间', width: 100, align: 'center',formatter:function(value,row,index){
										if(!StringUtils.isEmpty(value)){
											return value.substring(0,10);
										}
									}}
									,{field:'QYTDMC', title:'签约团队', width: 100, align: 'center'}
									,{field:'cz', title:'操作', width: 100, align: 'center',formatter:function(value,row,index){
										row = JSON.stringify(row).replace(/"/g, '&quot;');
										//return '<a href="javascript:void(0)" onclick="checkYqy('+row+')">确认</a>';
                                		return '<span class="spanBtn" onclick="checkYqy('+ row +')">审核</span>';
									}}
						]],
						url:contextRoot+"gzt/queryWqyjmDataByPage.service",
						onBeforeLoad: function(params){
							//params.USERID = parent.userInfo.USERID;
                            var TDID = $("#tdxxList>option:selected").data("TDID");
                            params.YLTDID = TDID;
						},
						onLoadSuccess: function(data){
							$("#wqyNum").html(data.total);
						}
				})
    		},
    		dqtxTb: function(){
    			var query = $('#dqtxTb').data("query");
    			if(!query){
    				$('#dqtxTb').data("query",true);
    			}else{
    				return;
    			}
    			$('#dqtxTb').datagrid({
						idField : "USERID",
						uniqueId: "USERID",
						striped : true,
						clickToSelect: true,
						fit:true,
						fitColumns: true,
						scrollbarSize:0, //预留的滚动条的宽度
						singleSelect:true,
						pagination : true,
						pageNumber : 1,
						pageSize : 10,
						pageList: [10, 25, 50, 100, 200],
						scrollBarSize:0,
						border: false,
						columns:[[
					   				{field:'XM', title:'姓名', width: 100, align: 'center'}
									,{field:'ZJHM', title:'证件号码', width: 200, align: 'center',formatter:function(value){
										var reg = /.{8}$/;
										return value.replace(reg,'********');
									}}
									,{field:'SJHM', title:'手机号码', width: 100, align: 'center'}
									,{field:'JTZZ', title:'家庭住址', width: 100, align: 'center'}
									,{field:'QYSJ', title:'签约时间', width: 100, align: 'center',formatter:function(value,row,index){
										if(!StringUtils.isEmpty(value)){
											return value.substring(0,10);
										}
									}}
									,{field:'QYTDMC', title:'签约团队', width: 100, align: 'center'}
									,{field:'JSSJ', title:'到期时间', width: 100, align: 'center',formatter:function(value,row,index){
										if(!StringUtils.isEmpty(value)){
											return value.substring(0,10);
										}
									}}
									,{field:'cz', title:'操作', width: 100, align: 'center',formatter:function(value,row,index){
										//return '<a>续约</a>';
                                		row = JSON.stringify(row).replace(/"/g, '&quot;');
                                		return '<span class="spanBtn" onclick="xyfw(' + row + ')">续约</span>';
									}}
						]],
						onBeforeLoad : function(params) {
//							params.QYLX = '01';
//							params.TQTS = 30; //到期提醒设置的提前天数
							//params.USERID = parent.userInfo.USERID;
							params.YLTDID = $("#tdxxList>option:selected").data("TDID");
							params.SFXY = 0;
						},
						url:contextRoot+"gzt/queryDqtxjmDataByPage.service",
						onLoadSuccess: function(data){
							$("#dqtxNum").html(data.total);
						}
				})
    		},
    		zjshTb: function(){
    			var query = $('#zjshTb').data("query");
    			if(!query){
    				$('#zjshTb').data("query",true);
    			}else{
    				return;
    			}
    			$('#zjshTb').datagrid({
						idField : "USERID",
						uniqueId: "USERID",
						striped : true,
						clickToSelect: true,
						fit:true,
						fitColumns: true,
						scrollbarSize:0, //预留的滚动条的宽度
						singleSelect:true,
						pagination : true,
						pageNumber : 1,
						pageSize : 10,
						pageList: [10, 25, 50, 100, 200],
						scrollBarSize:0,
						border: false,
						columns:[[
					   				{field:'XM', title:'姓名', width: 100, align: 'center'}
									,{field:'ZJHM', title:'证件号码', width: 100, align: 'center',formatter:function(value){
										var reg = /.{8}$/;
										return value.replace(reg,'********');
									}}
									,{field:'SJHM', title:'手机号码', width: 100, align: 'center'}
									,{field:'JTZZ', title:'家庭住址', width: 100, align: 'center'}
									,{field:'QYSJ', title:'签约时间', width: 100, align: 'center',formatter:function(value,row,index){
										if(!StringUtils.isEmpty(value)){
											return value.substring(0,10);
										}
									}}
									,{field:'QYTDMC', title:'转出团队', width: 100, align: 'center'}
									,{field:'SQRQ', title:'申请时间', width: 100, align: 'center',formatter:function(value,row,index){
										if(!StringUtils.isEmpty(value)){
											return value.substring(0,10);
										}
									}}
									,{field:'ZJYYMS', title:'转介原因', width: 100, align: 'center',formatter:function(value){
										return '<span title="'+ value +'">'+ value + '</span>';
									}}
									,{field:'XQYTDMC', title:'转入团队', width: 100, align: 'center'}
									,{field:'cz', title:'操作', width: 100, align: 'center',formatter:function(value,row){
										row = JSON.stringify(row).replace(/"/g, '&quot;');
										return '<span class="spanBtn" onclick="checkZjxx(' + row + ')">审核</span>';
									}}
						]],
						onBeforeLoad : function(params) {
							params.USERID = parent.userInfo.USERID;
							params.SHZT = 0;
							params.XQYTD = $("#tdxxList>option:selected").data("TDID");
						},
						url: contextRoot+"jtqy/queryZjsqByPage.service",
						onLoadSuccess: function(data){
							$("#zjshNum").html(data.total);
						}
				})
    		},
    		dwcfwTb: function(){
    			var query = $('#dwcfwTb').data("query");
    			if(!query){
    				$('#dwcfwTb').data("query",true);
    			}else{
    				return;
    			}
    			$('#dwcfwTb').datagrid({
						idField : "USERID",
						uniqueId: "USERID",
						striped : true,
						clickToSelect: true,
						fit:true,
						fitColumns: true,
						scrollbarSize:0, //预留的滚动条的宽度
						singleSelect:true,
						pagination : true,
						pageNumber : 1,
						pageSize : 10,
						pageList: [10, 25, 50, 100, 200],
						scrollBarSize:0,
						border: false,
						columns:[[
					   				{field:'XM', title:'签约居民', width: 100, align: 'center'},
									{field:'FWBMC', title:'签约服务包', width: 100, align: 'center',formatter:function(value){
                                        if(StringUtils.isEmpty(value)){
                                            return '<span class="fdztCss">医保服务项</span>';
                                        }else{
                                            return '<span title="'+ value +'">'+ value + '</span>'
                                        }
									}},
									{field:'FWRY', title:'服务人员', width: 100, align: 'center'},
									{field:'FWMC', title:'服务项', width: 100, align: 'center'},
									{field:'FWNR', title:'服务项内容', width: 200, align: 'center'},
									{field:'QYTD', title:'签约团队', width: 100, align: 'center'},
									{field:'YQFWSJ', title:'预期服务时间', width: 100, align: 'center',formatter:function(value,row,index){
										return value.substring(0,10);
									}},
									{field:'cz', title:'操作', width: 100, align: 'center',formatter:function(value,row,index){
										row = JSON.stringify(row).replace(/"/g, '&quot;');
										return '<span class="spanBtn" onclick="doedTask('+ row +')">完成服务</span>';
									}},
						]],
						onBeforeLoad : function(params) {
							params.FWZT = 0; 
							params.USERID = parent.userInfo.USERID;
							params.TDIDS = $("#tdxxList>option:selected").data("TDID");
						},
						url:contextRoot+"wdqyhz/queryYfpfwxByPage.service",
						onLoadSuccess: function(data){
							$("#dwcfwNum").html(data.total);
							$(this).datagrid("unselectAll");
						}
				})
    		}
    }
</script>

</head>

<body class="easyui-layout" fit="true" border="false">
	<div region="north" style="height:207px;border:none;overflow:hidden">
		<div class="title">签约信息概览</div>
		<ul id="dateUl" type="none" style="margin:10px 15px 0px;">
			<li onclick="queryByTimeLimit(1)" class="bg">今天</li>
			<li onclick="queryByTimeLimit(2)">本周</li>
			<li onclick="queryByTimeLimit(3)">本月</li>
			<li onclick="queryByTimeLimit(4)">本年</li>
			<li style="width:170px;;margin-left:50px;border:none">
				<input class="laydate-icon inputDate" placeholder="请选择日期" id="startTime"/>
			</li>
			<li style="width:20px;border:none">至</li>
			<li style="width:170px;border:none">
				<input class="laydate-icon inputDate" placeholder="请选择日期" id="endTime"/>
			</li>
			
			<li style="float:right;margin-right:20px;border:none;width:240px;text-align:left">
				<span style="font-size:15px;color: #0E2D5F;font-weight: bold;">切换团队:</span>
				<select id="tdxxList" style="width:165px;"></select>
			</li>
		</ul>
		<table class="form-table" style="margin-top:50px;margin-left:15px;width:658px;" id="totalTable">
			<tr>
				<td class="td-text">已签约</td>
				<td class="td-text">已预约</td>
				<td class="td-text">已转诊</td>
				<td class="td-text">已履约</td>
				<td class="td-text">有效签约</td>
				<td class="td-text">有效签约率</td>
			</tr>
			<tr id="precent">
				<td onclick="queryYqyData()" id="YQYRC"></td>
				<td onclick="queryModelData('yyyModel')" id="YYRC"></td>
				<td onclick="queryModelData('yzzModel')" id="ZZRC"></td>
				<td onclick="queryModelData('ylyModel')" id="LYRC"></td>
				<td onclick="queryYxqyData()" id="YXQYRC"></td>
				<td id="YXQYL"></td>
			</tr>
		</table>
		<div class="title" style="margin-top:20px;">近期工作任务</div>
		<ul id="labelUl"></ul>
	</div>
	
	
	<div region="center" border="false">
		<div id="tableTabs" class="easyui-tabs" fit="true" border="false"></div>
	</div>
</body>
</html>
